import request from '@/utils/request'

 //API常量
 const APIS = {
  V1: "/v1"
}

export function createAsset(data) {
  return request({
    url: APIS.V1+`/system/asset`,
    method: 'post',
    data
  })
}

export function createAssetDraft(data) {
  return request({
    url: APIS.V1+`/system/asset/draft`,
    method: 'post',
    data
  })
}


export function selectAsset(params) {
  return request({
    url: APIS.V1+`/system/asset`,
    method: 'get',
    params: params
  })
}

export function deleteAssets(params) {
  return request({
    url: APIS.V1+`/system/asset/deleteAssets`,
    method: 'delete',
    params: params
  })
}




